/**
 * @Author: 陈瑞鹏
 * @Date:   2022-10-17 11:20:00
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2022-10-17 11:21:29
 */
import mongoose, { mongo } from 'mongoose';

const Schema = mongoose.Schema;
const ServerSchema: mongoose.Schema = new Schema({
  serverId: { type: Number, desc: '区服Id', createIndexes: true, index: true },
  serverName: { type: String, desc: '区服名称' },
  createTime: { type: String, desc: '创建时间' },
  isOpen: { type: Boolean, display: '是否开服', default: false, index: true },
  userTotal: { type: Number, display: '用户总数' },
  payTotal: { type: Number, display: '充值总数' },
}, { versionKey: false });

const Server = mongoose.model('Server', ServerSchema);
export default Server;